<!DOCTYPE html>
<!--[if IE 8 ]>
<html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"><!--<![endif]-->
<head>

    <!-- Basic Page Needs
    ================================================== -->
    <meta charset="utf-8"/>
    <title>订单管理</title>

    <!-- Mobile Specific Metas
    ================================================== -->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

    <!-- CSS
    ================================================== -->
    <link rel="stylesheet" href="css/style.css" th:href="@{/css/style.css}"/>
    <link rel="stylesheet" href="css/colors/green.css" th:href="@{/css/colors/green.css}" id="colors"/>

    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

</head>

<body class="boxed">
<div id="wrapper">


    <!-- Top Bar
    ================================================== -->
    <div th:replace="fragments/topbar :: topbar"></div>


    <div class="clearfix"></div>


    <!-- Header
================================================== -->
    <div class="container">

        <!-- Logo -->
        <div class="four columns">
            <div id="logo">
                <h1><a th:href="@{/index}"><img th:src="@{/images/logo.png}" alt="Trizzy"/></a></h1>
            </div>
        </div>

    </div>


    <!-- Titlebar
    ================================================== -->
    <section class="titlebar margin-top-20">
        <div class="container">
            <div class="sixteen columns">
                <h2>订单管理</h2>

                <nav id="breadcrumbs">
                    <ul>
                        <li><a th:href="@{/adminManagement}">后台管理中心</a></li>
                        <li>订单管理</li>
                    </ul>
                </nav>
            </div>
        </div>
    </section>

    <!-- Content
    ================================================== -->
    <div class="container margin-top-20">

        <div class="container cart">

            <div class="sixteen columns">

                <h3 class="headline"> * 全部订单</h3><span class="line margin-bottom-35"></span>

                <div class="clearfix"> （红色：尚未发货订单；黄色：等待用户收货订单；绿色：用户已完成收货订单。 ——注意）</div>

                <div class="sixteen columns">

                    <div th:each="order,itemStat : ${orders}">

                        <a th:href="@{/orderDetail(order_id = ${order.order_id})}">
                            <div th:if="${order.status eq 1}" class="notification error closeable">
                                <p th:text="'订单号：' + ${order.order_id} + '，下单时间：' + ${order.creat_time} + '，订单状态：尚未发货'"></p>
                            </div>
                        </a>

                        <a th:href="@{/orderDetail(order_id = ${order.order_id})}">
                            <div th:if="${order.status eq 2}" class="notification warning closeable">
                                <p th:text="'订单号：' + ${order.order_id} + '，下单时间：' + ${order.creat_time} + '，订单状态：等待用户收货'"></p>
                            </div>
                        </a>

                        <a th:href="@{/orderDetail(order_id = ${order.order_id})}">
                            <div th:if="${order.status ge 3}" class="notification success closeable">
                                <p th:text="'订单号：' + ${order.order_id} + '，下单时间：' + ${order.creat_time} + '，订单状态：用户已经收货'"></p>
                            </div>
                        </a>

                    </div>

                </div>

            </div>

        </div>

    </div>
    <!-- Container / End -->

    <div class="margin-top-30"></div>

    <!-- Footer
         ================================================== -->
    <div th:replace="fragments/footer :: footer"></div>

</div>


<!-- Java Script
================================================== -->
<div th:replace="fragments/scripts :: scripts"></div>


<!-- Style Switcher
================================================== -->
<div th:replace="fragments/styleswitcher :: styleswitcher"></div>


</body>
</html>